﻿{extend name="$_tpl_public_layout_ace"/}


{block name="breadcrumb"}
<ul class="breadcrumb">
	<li><i class="fa fa-home home-icon"></i><a href="{:url('manage/index/index')}">{:config('web_site_title')}</a></li>
	<li><a href="{:url('seatsel/manage/index')}">{:config('proj_name')}</a></li>
	<li><a href="{:url('seatsel_manage/orderRefund/index')}">{$sideName}</a></li>
</ul>
{/block}


{block name="pageheader"}
<h1>
	{$sideName}
</h1>
{/block}


{block name="content"}
<!-- 搜索框 -->
<form method="get" action="{:url('seatsel_manage/orderRefund/index')}" class="form-inline mb20 J_ajaxForm">
	<div class="mb10">
		<div class="form-group">
			<label>订单ID：</label>
			<input type="text" name="id" value="{$id}" class="form-control zz-length1" />
		</div>
		<div class="form-group">
			<label>订单号：</label>
			<input type="text" name="order_no" value="{$order_no}" class="form-control zz-length4" />
		</div>
		<div class="form-group">
			<label>支付流水号：</label>
			<input type="text" name="payment_trade_no" value="{$payment_trade_no}" class="form-control zz-length4" />
		</div>
	</div>
	<div class="mb10">
		<div class="form-group">
			<label>用户uid：</label>
			<input type="text" name="uid" value="{$uid}" class="form-control zz-length1" />
		</div>
		<div class="form-group">
			<label>论坛uid：</label>
			<input type="text" name="pwuid" value="{$pwuid}" class="form-control zz-length3" />
		</div>
		<div class="form-group">
			<label>用户名：</label>
			<input type="text" name="username" value="{$username}" class="form-control zz-length3" />
		</div>
		<div class="form-group">
			<label>总金额：</label>
			<input type="text" name="total_fee" value="{$total_fee}" class="form-control zz-length2" />
		</div>
		<div class="form-group">
			<label>帖子/店铺ID：</label>
			<input type="text" name="dataid" value="{$dataid}" class="form-control zz-length1" />
		</div>
	</div>
	<div class="mb10">
		<div class="form-group">
			<label>开始时间：</label>
			<input type="text" name="start_time_s" value="{$start_time_s}" class="form-control zz-length3 J_datetimepicker" />
		</div>
		<div class="form-group">
			<label>结束时间：</label>
			<input type="text" name="end_time_s" value="{$end_time_s}" class="form-control zz-length3 J_datetimepicker" />
		</div>
	</div>
	<button type="submit" data-action="{:url('seatsel_manage/orderRefund/index')}" class="btn btn-success btn-sm J_excel">搜索</button>
	<button type="submit" data-action="{:url('seatsel_manage/orderRefund/doExcel')}" class="btn btn-danger btn-sm J_excel">导出</button>
</form>
<!-- 搜索框 -->

<form class="">
	<table class="table table-striped table-bordered table-hover mb20">
		<thead>
			<tr>
				<th width="76">ID</th>
				<th>订单号</th>
				<th width="90">退款金额</th>
				<th width="260">申请者</th>
				<th width="260">管理员</th>
				<th width="120">状态</th>
				<th width="100">操作</th>
			</tr>
		</thead>
		<tbody>
			{volist name="refundList" id="vo"}
			<tr>
				<td>{$vo['id']}</td>
				<td>
					<div class="esf-tit-pannel">
						<div class="esf-tit-pannel-bd esf-tit-pannel-bd-fix">
							<div class="esf-work">订单ID：{$vo['order_id']}</div>
							<div class="esf-work">订单号：{$vo['order_no']}</div>
							<div class="esf-work">退款订单号：{$vo['out_request_no']}</div>
						</div>
					</div>
				</td>
				<td>{$vo['refund_fee']}</td>
				<td>
					<div class="zzui-apply">
						<div class="zzui-apply-title">申请原因：</div>
						<div class="zzui-apply-desc">{$vo['apply_reason']}</div>
					</div>
					<div class="zzui-apply">
						<div class="zzui-apply-title">申请时间：</div>
						<div class="zzui-apply-desc">{$vo['create_time_show']}</div>
					</div>
				</td>
				<td>
					<div class="zzui-apply">
						<div class="zzui-apply-title">退款原因：</div>
						<div class="zzui-apply-desc">{$vo['refund_reason']}</div>
					</div>
					<div class="zzui-apply">
						<div class="zzui-apply-title">操作人：</div>
						<div class="zzui-apply-desc">{$vo['admin_username']}</div>
					</div>
					<div class="zzui-apply">
						<div class="zzui-apply-title">操作时间：</div>
						<div class="zzui-apply-desc">{$vo['refund_time_show']}</div>
					</div>
				</td>
				<td>{$vo['status_show']}</td>
				<td>
					{if condition="$vo['status'] eq 1"}
					<a href="{:url('seatsel_manage/orderRefund/refundPop', ['channel'=>2, 'refundId'=>$vo['id']])}" class="btn btn-success btn-xs J_layerPcDialog" data-tip="请确认退款金额及原因">立即退款</a>
					{/if}
				</td>
			</tr>
			<tr>
				<td></td>
				<td colspan="6">
					<ul class="zzui-picture">
					{volist name="refundPictureGroup[$vo['id']]" id="vo2"}
						<li><a href="{$vo2['picurl']}" target="_blank"><img src="{$vo2['picurl']}" /></a></li>
					{/volist}
					</ul>
				</td>
			</tr>
			{/volist}
		</tbody>
	</table>
</form>
<div class="dataTables-pages">{$pageShow}</div>
{/block}